<template>
    <div class="login-bar">
        <div class="login-bar-left">
            <h2>立即登录 体验共享驾驭乐趣</h2>
            <p>新用户可享 <span>首单1元3小时</span> 用车优惠</p>
        </div>
        <div class="login-bar-right">
            <button class="border-outline opacity" type="button" @click="showL()">登录/注册</button>
        </div>
    </div>
</template>

<script>
 export default {
    methods: {
        showL () {
            this.$emit("showLog", true);
        }
    },
    data () {
        return {

        }
    }
 }
</script>

<style scoped>
    .login-bar {
        width: 100%;
        height: 100px;
        position: absolute;
        top: 0;
        right: 0;
        z-index: 15;
        padding: 0 30px;
        text-align: left;

        background: #fff;
        box-shadow: 0 10px 20px 0 rgba(0,0,0,0.05);
    }
    /*左侧*/
    .login-bar-left {
        font-family: PingFangSC-Regular;
        font-size: 28px;
        color: #333;
        letter-spacing: 0;
    }
    .login-bar-left h2 {
        margin-top: 15px;
        line-height: 40px;

        font-family: PingFangSC-Regular;
        font-size: 28px;
        color: #333;
        letter-spacing: 0;
    }
    .login-bar-left p {
        line-height: 30px;
        font-family: PingFangSC-Regular;
        font-size: 22px;
        color: #aaa;
        letter-spacing: 0;
    }
    .login-bar-left p span {
        display: inline-block;

        font-family: PingFangSC-Regular;
        font-size: 22px;
        color: #0db95f;
        letter-spacing: 0;
        line-height: 30px;
    }
    /*右侧*/
    .login-bar-right {
        height: 100%;

        position: absolute;
        top: 0;
        right: 0;
    }
    .login-bar-right button {
        display: block;
        width: 180px;
        height: 60px;
        line-height: 60px;
        margin: 20px 30px;

        background: #0db95f;
        border-radius: 30px;

        font-family: PingFangSC-Regular;
        font-size: 26px;
        color: #fff;
        letter-spacing: 0;
    }
</style>
